3.277 \(\int \frac{1}{\frac{1}{a}+\sqrt{-a} x} \, dx\)

Optimal. Leaf size=21 \[ \frac{\log \left (1-(-a)^{3/2} x\right )}{\sqrt{-a}} \]

[Out]

Log[1 - (-a)^(3/2)*x]/Sqrt[-a]

________________________________________________________________________________________

Rubi [A]  time = 0.0037768, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {31} \[ \frac{\log \left (1-(-a)^{3/2} x\right )}{\sqrt{-a}} \]

Antiderivative was successfully verified.

[In]

Int[(a^(-1) + Sqrt[-a]*x)^(-1),x]

[Out]

Log[1 - (-a)^(3/2)*x]/Sqrt[-a]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{1}{\frac{1}{a}+\sqrt{-a} x} \, dx &=\frac{\log \left (1-(-a)^{3/2} x\right )}{\sqrt{-a}}\\ \end{align*}

Mathematica [A]  time = 0.0131803, size = 21, normalized size = 1. \[ \frac{\log \left (\sqrt{-a} a x+1\right )}{\sqrt{-a}} \]

Antiderivative was successfully verified.

[In]

Integrate[(a^(-1) + Sqrt[-a]*x)^(-1),x]

[Out]

Log[1 + Sqrt[-a]*a*x]/Sqrt[-a]

________________________________________________________________________________________

Maple [A]  time = 0., size = 19, normalized size = 0.9 \begin{align*}{\ln \left ({a}^{-1}+x\sqrt{-a} \right ){\frac{1}{\sqrt{-a}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(1/a+x*(-a)^(1/2)),x)

[Out]

ln(1/a+x*(-a)^(1/2))/(-a)^(1/2)

________________________________________________________________________________________

Maxima [A]  time = 1.08819, size = 24, normalized size = 1.14 \begin{align*} \frac{\log \left (\sqrt{-a} x + \frac{1}{a}\right )}{\sqrt{-a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1/a+x*(-a)^(1/2)),x, algorithm="maxima")

[Out]

log(sqrt(-a)*x + 1/a)/sqrt(-a)

________________________________________________________________________________________

Fricas [A]  time = 1.52163, size = 47, normalized size = 2.24 \begin{align*} -\frac{\sqrt{-a} \log \left (a^{2} x - \sqrt{-a}\right )}{a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1/a+x*(-a)^(1/2)),x, algorithm="fricas")

[Out]

-sqrt(-a)*log(a^2*x - sqrt(-a))/a

________________________________________________________________________________________

Sympy [A]  time = 0.092976, size = 19, normalized size = 0.9 \begin{align*} \frac{\log{\left (a x \sqrt{- a} + 1 \right )}}{\sqrt{- a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1/a+x*(-a)**(1/2)),x)

[Out]

log(a*x*sqrt(-a) + 1)/sqrt(-a)

________________________________________________________________________________________

Giac [A]  time = 1.22001, size = 26, normalized size = 1.24 \begin{align*} \frac{\log \left ({\left | \sqrt{-a} x + \frac{1}{a} \right |}\right )}{\sqrt{-a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1/a+x*(-a)^(1/2)),x, algorithm="giac")

[Out]

log(abs(sqrt(-a)*x + 1/a))/sqrt(-a)